RecordSet.RecordCount Property
Syntax
RecordCount as Integer
The number of records in the RecordSet. Currently supported in the REALSQLdatabase, OpenBase, MySQL, PostgreSQL, and 4D plug-ins.
For databases that do not support function, RecordCount returns -1.